/// <reference path="../../../typings/angularjs/angular-mocks.d.ts" />
/// <reference path="../../../typings/jasmine/jasmine.d.ts" />
/// <reference path="../../../app/scripts/directives/<%= cameledName.toLowerCase() %>.ts" />

'use strict';

describe('Directive: <%= cameledName %>', () => {

    // load the directive's module
    beforeEach(module('<%= scriptAppName %>'));

    var element: JQuery,
        scope: ng.IScope;

    beforeEach(inject(($rootScope: ng.IRootScopeService) => {
        scope = $rootScope.$new();
    }));

    it('should make hidden element visible', inject(($compile: ng.ICompileService) => {
        element = angular.element('<<%= _.dasherize(name) %>></<%= _.dasherize(name) %>>');
        element = $compile(element)(scope);
        expect(element.text()).toBe('this is the <%= cameledName %> directive');
    }));
});
